package org.example.ruoxing_admin_springboot3.controller.user;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.example.ruoxing_admin_springboot3.httpResponseResult.ResponseResult;
import org.example.ruoxing_admin_springboot3.service.user.UserVerificationCodeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * @description 用户验证码的controller
 * @author 莫若省
 * @createTime 2024/5/9
*/
@RestController
@Tag(name = "用户登陆相关接口")
public class UserVerificationCodeController {
    @Resource
    private UserVerificationCodeService userVerificationCodeService;
    /**
     * @description 获取验证码的接口
     * @author 莫若省
     * @createTime 2024/5/10
    */
    @Operation(summary = "获取验证码的接口")
    @GetMapping("/verificationCode/create")
    public ResponseResult<Object> getVerificationCode(){
        return userVerificationCodeService.createVerificationCode();
    }
}
